package org.springcloud.wisdom.springcloud_03_freshman.student.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 宿舍信息
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("dormitory")
public class Dormitory {
    //主键
    @TableId(type = IdType.AUTO,value = "wisdom.dormitory.id")
    private Integer id;
    //哪一栋
    @TableField("wisdom.dormitory.position")
    private String position;
    //房间号
    @TableField("wisdom.dormitory.dorno")
    private Integer dorno;
    //房间类型
    @TableField("wisdom.dormitory.type")
    private String type;
    //可容纳人数
    @TableField("wisdom.dormitory.contain")
    private Integer contain;
    //男生宿舍还是女生宿舍
    @TableField("wisdom.dormitory.attri")
    private String attri;
    //宿舍是否满员
    @TableField("wisdom.dormitory.occupy")
    private String occupy;
}
